#include <iostream>
#include <thread>
#include <unistd.h>

using namespace std;

void run()
{
    while(true)
    {
        sleep(1);
        cout << "hello thread!" << endl;
    }
}

int main()
{
    thread t(run);
    t.join();
    return 0;
}
